#include<stdio.h>
int min(int arr[] ,int x)
{
	int i, t,j;
	t = arr[x];
	for (i = x; i < 9; i++)
	{
		if (t >= arr[i+1])
		{
			j = t; t = arr[i + 1]; arr[i+1] = j;
		}
	}
return (t);
}

int main()
{
	int i, arr[10];
	for (i = 0; i < 10; i++)
		scanf_s("%d", &arr[i]);
	for (i = 0; i < 10; i++)
		printf("%d ", min(arr, i));
	return 0;
}
